package com.campus.service;

import com.campus.domain.dto.AnnouncementQueryDTO;
import com.campus.domain.dto.PublishAnnouncementDTO;
import com.campus.domain.vo.AnnouncementVO;
import com.campus.domain.vo.PageResultVO;

public interface IAnnouncementService {
    /**
     * 发布公告
     */
    void publishAnnouncement(PublishAnnouncementDTO dto, Long userId);
    
    /**
     * 获取公告列表（分页）
     */
    PageResultVO<AnnouncementVO> getAnnouncementList(AnnouncementQueryDTO queryDTO);
    
    /**
     * 获取公告详情
     */
    AnnouncementVO getAnnouncementDetail(Long id);
    
    /**
     * 删除公告
     */
    void deleteAnnouncement(Long id, Long userId);
}

